package com.riven.bilibilidemo.application;

import android.content.Context;
import android.widget.ImageView;
import com.riven.bilibilidemo.utils.UIUtils;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by Pooh on 2017/2/14.
 */
public class GlideImageLoader extends ImageLoader {

    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        //用fresco加载图片简单用法，记得要写下面的createImageView方法
//        Uri uri = Uri.parse((String) path);
//        imageView.setImageURI(uri);
        UIUtils.loadImage(path.toString(),imageView);

    }
}
